- value
- The string to parse.
- ignoreCase
- if set to true ignore case during string comparison.
Visual Basic (Declaration) | |
---|---|
<ExtensionAttribute()> Overloads Public Shared Function Parse(Of T)( _ ByVal value As String, _ ByVal ignoreCase As Boolean _ ) As T |
Visual Basic (Usage) | Copy Code |
---|---|
Dim value As String Dim ignoreCase As Boolean Dim value As T value = GeneralExtensions.Parse(Of T)(value, ignoreCase) |
C# | |
---|---|
[ExtensionAttribute()] public static T Parse<T>( string value, bool ignoreCase ) |
C++/CLI | |
---|---|
[ExtensionAttribute()] public: static T^ Parsegeneric<typename T> ( String^ value, bool ignoreCase ) |
Parameters
- value
- The string to parse.
- ignoreCase
- if set to true ignore case during string comparison.
Type Parameters
- T
- The enumeration type
Return Value
The enumeration value that corresponds to the string.Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7